package com.song.controller;

import com.song.pojo.User;
import com.song.service.FeignService;
import jakarta.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.client.RestTemplate;

/**
 * @Author 宋伟宁
 * @Date 2024/1/3
 * @Version 1.0
 **/
@RestController
@RequestMapping("/feign")
public class OrderController {

    @Value("${server.port}")
    private String port;

    @Resource
    private FeignService feignService;

    @GetMapping("/")
    public String hello(){
        return "端口号的"+this.feignService.index();
    }


}
